net/designware: make driver compatible with data cache
authorAlexey Brodkin <[email protected]>
Wed, 22 Jan 2014 16:49:09 +0000 (20:49 +0400)
committerTom Rini <[email protected]>
Fri, 7 Feb 2014 14:17:05 +0000 (09:17 -0500)
commit50b0df814b0f75c08a3d45a017016a75af3edb5d
tree5f68cb4e12f3791137ce141494f54e3fb9bafc09
parent92a190aaab3536d695c51e0739f925910eb49889
net/designware: make driver compatible with data cache

Up until now this driver only worked with data cache disabled.
To make it work with enabled data cache following changes were required:

 * Flush Tx/Rx buffer descriptors their modification
 * Invalidate Tx/Rx buffer descriptors before reading its values
 * Flush cache for data passed from CPU to GMAC
 * Invalidate cache for data passed from GMAC to CPU

Cc: Joe Hershberger <[email protected]>
Cc: Vipin Kumar <[email protected]>
Cc: Stefan Roese <[email protected]>
Cc: Mischa Jonker <[email protected]>
Cc: Shiraz Hashim <[email protected]>
Cc: Albert ARIBAUD <[email protected]>
Cc: Amit Virdi <[email protected]>
Cc: Sonic Zhang <[email protected]>
Signed-off-by: Alexey Brodkin <[email protected]>
drivers/net/designware.c